package com.summer.campussct.mapper;

import com.summer.campussct.pojo.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 分类表 Mapper 接口
 * </p>
 *
 * @author Mr.Chen
 * @since 2024-04-21
 */
public interface CategoryMapper extends BaseMapper<Category> {

    List<Category> vehicleTypeList(int pageSize);

    List<Category> brandListByCategoryId(@Param("pageSize") int pageSize,@Param("categoryId") Integer categoryId);

    /**
     * 查询某个分类下的一页子分类
     * @param id 分类id
     */
    List<Long> getSubCategoryListById(long id);
}
